package com.cjzuji.rental.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;
/**
 * 风控表实体类
 */
@Data
@Accessors(chain = true)
@TableName("risk_approval")
@NoArgsConstructor
@Builder
@AllArgsConstructor
public class RiskApprovil {
    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 申请ID
     */
    @TableField(value = "credit_id")
    private String creditId;

    /**
     * orders表的主键ID
     */
    @TableField(value = "order_id")
    private Long orderId;

    /**
     * 订单号
     */
    @TableField(value = "orders_id")
    private String ordersId;

    /**
     * 审批状态1审批通过  2审批拒绝 3审批中
     */
    @TableField(value = "approval_status")
    private String approvalStatus;

    /**
     * 回调状态 1回调通过  2回调拒绝 3回调中
     */
    @TableField(value = "status")
    private String status;

    /**
     * 回调信息
     */
    @TableField(value = "massage")
    private String massage;

    /**
     * 结果内容json
     */
    @TableField(value = "content")
    private String content;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;
}